package com.cloud.drore.eboss.operation.entity.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/4/12 15:38 <br>
 * @Author: <a href="1451173193@qq.com">杨亮</a>
 */
@Data
public class OrderStatisticsPo {
    /**
     * 订单统计开始时间
     */
    @NotNull(message = "订单统计开始时间不能为空")
    @JsonProperty("start_date")
    @JSONField(name = "start_date",format = "yyyy-MM-dd")
    @ApiModelProperty(name = "start_date", notes = "订单统计开始时间", example = "2018-01-01")
    private Date startDate;
    /**
     * 订单统计结束时间
     */
    @NotNull(message = "订单统计结束时间不能为空")
    @JsonProperty("end_date")
    @JSONField(name = "end_date",format = "yyyy-MM-dd")
    @ApiModelProperty(name = "end_date", notes = "订单统计结束时间", example = "2018-03-01")
    private Date endDate;

    /**
     * 订单统计产品编号
     */
    @JsonProperty("product_num")
    @JSONField(name = "product_num")
    @ApiModelProperty(name = "product_num", notes = "订单统计产品编号", example = "2018-03-01")
    private String productNum;
}
